function submitForm() {
    $('#ff').form('submit', {
        onSubmit:function(){
            return $(this).form('enableValidation').form('validate');
        },
        success: function(data){
            if (data.code == 0){
                $.messager.alert("提示",data.msg,"info");
            }else{
                $.messager.alert("提示",data.msg,"Warning")
            }
        }
    });
}

function clearForm(){
    $('#ff').form('clear');
}